'use strict';

const Service = require('egg').Service;

class NewService extends Service {
  async list() {
    const newsList = {
      list: [
        { id: 1, title: 'this is news 4', url: '/news/4' },
        { id: 2, title: 'this is news 5', url: '/news/5' },
      ],
    };
    return newsList;
  }
}

module.exports = NewService;
